
{if $okMessage}<h2>{$okMessage}</h2>{/if}
{if $errorMessage}<h2>{$errorMessage}</h2>{/if}
	
<form name="changeProfileForm" action="{$currentUrl}" method="post">
	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td>Kasutajanimi: </td>
			<td>{$user->username}</td>
		</tr>
		<tr>
			<td>Email:</td>
			<td>{$user->email}</td>
		</tr>	
		<tr>
			<td><label for="firstName"> Eesnimi: </label></td>
			<td><input id="firstName" type="text" name="firstName" value="{$user->firstName}" /></td>
		</tr>
		<tr>
			<td><label for="lastName"> Perenimi: </label></td>
			<td><input id="lastName" type="text" name="lastName" value="{$user->lastName}" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" name="changeProfile" value="Muuda" /></td>
		</tr>
	</table>
</form>



<form name="changePasswordForm" action="{$currentUrl}" method="post">
	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td><label for="oldPassword"> Vana parool: </label></td>
			<td><input id="oldPassword" type="password" name="oldPassword" /></td>
		</tr>
		<tr>
			<td><label for="password1"> Uus parool: </label></td>
			<td><input id="password1" type="password" name="password1" /></td>
		</tr>
		<tr>
			<td><label for="password2"> Parool uuesti: </label></td>
			<td><input id="password2" type="password" name="password2" /></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" name="changePassword" value="Muuda" /></td>
		</tr>
	</table>
</form>